package com.zzyl.nursing.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 护理任务表实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class NursingTask {
    private Long id;
    private String bedNumber;           // 床位编号**
    private String cancelReason;        // 取消原因**
    private Long createBy;              // 创建人id**
    private LocalDateTime createTime;   // 创建时间**
    private Long elderId;               // 老人id**
    private String elderName;           // 老人姓名**
    private String estimatedServerTime;// 预计服务时间（分钟）**
    private String mark;                // 执行记录
    private String nursingId;           // 护理员id，多个用逗号分隔，如：103,104
    private Long projectId;             // 项目id
    private String projectName;         // 护理项目名称
    private String realServerTime;     // 实际服务时间（分钟）
    private String remark;              // 备注
    private Integer status;             // 状态：1待执行，2已执行，3已关闭
    private String taskImage;           // 执行图片路径或URL
    private Long updateBy;              // 更新人id
    private LocalDateTime updateTime;   // 更新时间
    @TableField(exist = false)
    private String[] nursingName;
    private Long taskType;

    @TableField(value = "nursing_id", exist = false)
    private Long nurseId;


    // ==================== Getter and Setter ====================
    private String updater;
}